package city.spring.modules.medicalstation.drugwarehouse.repository;

import city.spring.modules.medicalstation.drugwarehouse.entity.DrugwarehouseEntity;
import city.spring.modules.medicalstation.drugwarehouse.vo.DrugwarehouseVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 存储库：医护站药品入库
 *
 * @author 谢金婷
 * @date 2020-09-21 17:00:56
 */
@Repository
public interface DrugwarehouseRepository extends BaseMapper<DrugwarehouseEntity> {
    IPage<DrugwarehouseVO> listPage(Page<? extends DrugwarehouseEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends DrugwarehouseEntity> wrapper);

    IPage<DrugwarehouseVO> otherlistPage(Page<? extends DrugwarehouseEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends DrugwarehouseEntity> wrapper);
}